package com.hanson.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hanson.entity.GoodsBean;
import com.hanson.entity.SpreadInfoBean;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SpreadInfoBeanMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SpreadInfoBean record);

    SpreadInfoBean selectByPrimaryKey(Integer id);

    List<SpreadInfoBean> selectAll();

    List<SpreadInfoBean> selectByChildId(@Param("childId") String childId);

    List<SpreadInfoBean> selectByParentId(@Param("parentId") String parentId);

    List<SpreadInfoBean> selectPageByParentId(Page<SpreadInfoBean> page,@Param("parentId") String parentId,@Param("search") String search);

    int updateByPrimaryKey(SpreadInfoBean record);

    int updatePOpenId(@Param("oldId") String oldId, @Param("newId") String newId);

    int updateCOpenId(@Param("oldId") String oldId, @Param("newId") String newId);

}